package com.lzq.mq.common.enums;

import lombok.Getter;

@Getter
public enum BrokerResponseCode {
    SEND_MSG_RESP(2001,"推送消息给broker的响应code"),
    CONSUME_MSG_RESP(2002,"消费broker消息返回数据，响应code"),
    BROKER_UPDATE_CONSUME_OFFSET_RESP(2003,"broker更新消费offset，响应code"),
    CREATED_TOPIC_SUCCESS(2004,"创建topic成功，响应code"),
    START_SYNC_SUCCESS(2005,"从节点同步数据启动成功，响应code")
    ;

    private final int code;
    private final String desc;

    BrokerResponseCode(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

}